package com.studiofortress.sf.structure.intersection;
 
import com.studiofortress.sf.structure.Actor;

/**
 * 
 * 
 * 
 * 
 * 
 * 
 */
public class BoundsIntersection extends Intersection
{
	public BoundsIntersection(Actor actor)
	{
		super(actor);
	}
	
	@Override
	public boolean isIntersection(Intersection other)
	{
		return other.isIntersectionToBounds(this);
	}
	 
	@Override
	protected boolean isIntersectionToPixel(PixelIntersection other)
	{
		return Intersection.intersectionPixelToBounds(other.getActor(), getActor());
	}
	
	@Override
	protected boolean isIntersectionToBounds(BoundsIntersection other)
	{
		return Intersection.intersectionBoundsToBounds(getActor(), other.getActor());
	}
	
	@Override
	protected boolean isIntersectionToImage(ImageIntersection other)
	{
		return Intersection.intersectionBoundsToImage(getActor(), other.getActor());
	}
	
	@Override
	protected boolean isIntersectionToShape(ShapeIntersection other)
	{
		return Intersection.intersectionBoundsToShape(getActor(), other.getActor(), other.getShape());
	}
}
